<?php
// +----------------------------------------------------------------------
// | quanli team
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2020 http://www.fistforward.com/ All rights reserved.
// +----------------------------------------------------------------------
// | create by allen.qiang
// +----------------------------------------------------------------------


/**
 * 顾客建议功能
 * @package  htdocs
 * @subpackage  quanliadmin
 * @create by allen.qiang
 */
quanli_require('module/base/contentHandler.class.php');

class pa_custSuggest {
    //入口
    public function execute(){

        if (isset($_REQUEST['operFlg'])) {

            switch ($_REQUEST['operFlg']){

                case 1:
                    $this->suggestList();
                    break;

                default:
                    $this->toError('参数错误');
                    break;
            }

        }else{
            $this->toError('参数错误');
        }
    }

    //页面初始化
    private function suggestList() {
        global $G_PGLOB;

        //判断是否有编辑权限
        $edit_permission = $G_PGLOB->has_permission(20021);


        $G_PGLOB->smarty->assign('edit_permission',$edit_permission);
        $G_PGLOB->smarty->display('content/suggestList.tpl');
    }

    /**
     * 转跳到错误页面
     * @param string $msg 错误信息
     */
    private function toError( $msg = '' ) {

        global $G_PGLOB;

        $G_PGLOB->display_error_page( $msg );

    }


}